﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Quartz;
using Mileage.Web;

namespace ServiceJob.Jobs
{
    class IJobEmailSend : IJob
    {
        public void Execute(Quartz.JobExecutionContext context)
        {
            try
            {
                EmailSender es = new EmailSender("smtp.163.com", "fersion153@163.com", "fersion321", "547776369@qq.com"
                    , "定时邮件测试", "定时邮件测试", false, "test", null);
                es.Send();
                //context.Scheduler.DeleteJob(context.JobDetail.Name, context.JobDetail.Group);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
    }
   
}
